using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WinFormsDLLClient
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
		}

		private void Form1_Paint(object sender, PaintEventArgs e)
		{
			bool result = DLL.Gradient(
				e.Graphics.GetHdc(),
				0, 
				0, 
				this.ClientSize.Width, 
				this.ClientSize.Height,
				ColorTranslator.ToWin32(Color.LightCoral), 
				ColorTranslator.ToWin32(Color.Blue), 
				false);
			e.Graphics.ReleaseHdc();
		}

		private void Form1_Resize(object sender, EventArgs e)
		{
			Refresh();
		}
	}
}